package fr.grobim.hangovers.gestionBudget.beans.factures;

import org.apache.commons.lang.enums.Enum;


public class PeriodiciteFacture extends Enum {

	private static final long serialVersionUID = 1L;

	public static final PeriodiciteFacture MENSUELLE = new PeriodiciteFacture("M", "Mensuelle");
	
	public static final PeriodiciteFacture BIMENSUELLE = new PeriodiciteFacture("MM", "Bimensuelle");
	
	public static final PeriodiciteFacture TRIMESTRIELLE = new PeriodiciteFacture("T", "Trimestrielle");
	
	public static final PeriodiciteFacture HEBDOMADAIRE = new PeriodiciteFacture("SEM", "Hebdomadaire");
	
	public static final PeriodiciteFacture ANNUELLE = new PeriodiciteFacture("ANN", "Annuelle");

	protected PeriodiciteFacture(String id, String libelle) {
		super(id);
		this.libelle = libelle;
	}
	
	private String libelle;

	public String getLibelle() {
		return libelle;
	}
	
	public static PeriodiciteFacture get(String id) {
		return (PeriodiciteFacture) getEnum(PeriodiciteFacture.class, id);
	}
	
}
